package com.ls.fw.frame.data.service.impl;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

import com.ls.fw.frame.data.dao.DataTableFieldDao;
import com.ls.fw.frame.data.model.DataTableField;
import com.ls.fw.frame.data.model.example.DataTableFieldExample;
import com.ls.fw.frame.data.vo.DataTableFieldVo;
import com.ls.fw.frame.data.service.DataTableFieldService;
import com.ls.fw.data.rdb.impl.dao.EntityDao;
import com.ls.fw.data.rdb.impl.service.EntityServiceAdapter;


/**
 * 
 * @author ls
 * 2016年06月10日 16时40分37秒
 */
@Service("dataTableFieldService")   
public class DataTableFieldServiceImpl extends EntityServiceAdapter<DataTableField,DataTableFieldVo,java.lang.Long>  implements DataTableFieldService{
	
    private DataTableFieldDao dataTableFieldDao = null;
   
    @Resource
    public void setDataTableFieldDao(DataTableFieldDao dataTableFieldDao) {
		this.dataTableFieldDao = dataTableFieldDao;
    }
 
	
	@SuppressWarnings("unchecked")
	@Override
	public <D extends EntityDao<DataTableField, DataTableFieldVo,java.lang.Long>> D getEntityDao(){
		return (D) dataTableFieldDao;
	}
	
	@Override
	public List<DataTableField> selectByExample(DataTableFieldExample example) {
		return this.dataTableFieldDao.getMapper().selectByExample(example);
	}


	@Override
	public DataTableField selectOneByExample(DataTableFieldExample example) {
		return this.dataTableFieldDao.getMapper().selectOneByExample(example);
	}

	@Override
	public DataTableField selectOne(DataTableField record) {
		return this.dataTableFieldDao.getMapper().selectOne(record);
	}


	@Override
	public List<DataTableField> select(DataTableField record) {
		return this.dataTableFieldDao.getMapper().select(record);
	}


	@Override
	public int deleteByExample(DataTableFieldExample example) {
		return this.dataTableFieldDao.getMapper().deleteByExample(example);
	}


	@Override
	public int updateByExampleSelective(DataTableField record,
			DataTableFieldExample example) {
		return this.dataTableFieldDao.getMapper().updateByExampleSelective(record, example);
	}
}
